package smoketest.tomcat.listener;

import org.springframework.boot.context.event.ApplicationStartingEvent;
import org.springframework.context.ApplicationListener;

//@Component // springBoot 在启动过程中发布的ApplicationStartingEvent事件，监听此事件，需要把listener放在在META-INFO/spring.factories中
public class ApplicationStartingEventListenerDemo implements ApplicationListener<ApplicationStartingEvent> {
	@Override
	public void onApplicationEvent(ApplicationStartingEvent event) {
		System.out.println("======>"+event.toString());
	}
}
